#!/bin/bash

temp_dir="$(mktemp -d)"
file="$(echo "$(basename $0)" | cut -d "_" -f 2-)"
file="$(echo "$file" | cut -d "." -f 1)"".rb"

target_file="$temp_dir"/$file
curl -SsL https://gitee.com/hevey88/brew-user/raw/main/Casks/$file -o "$target_file"
brew install --cask "$target_file"
rm -rf "$target_file"
